<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Demo页面</title>
<style type="text/css">
select {width: 150px;}
</style>
<script src="../lib/jquery-1.4.min.js" type="text/javascript"></script>
<script src="../jquery.actionform.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
	$('#showRB').click(function(){
		var list = new Array('1','2','3');
		$('input[name=rb]').disabled('2');
		alert($('input[name=rb]').disabled());
	});

	$('input[type=button]').click(function(){
		var id = $(this).attr('id');
		if(id=='r1'){$('input[name=rb]').radio('2')}
		if(id=='r4'){alert($('input[name=rb]').radio())}
		else if(id=='r2'){alert($('input[name=rb]').enabled());}
		else if(id=='r3'){$('input[name=rb]').enabled('2');}
		else if(id=='r5'){$('input[name=rb]').disabled('2');}
	});
});
</script>
</head>
<body>

<div id="Test">Radio Button</div>
<fieldset>Radio Button
<fieldset><br>
<input type="radio" name="rb" value="1">值1(value 1)<br>
<input type="radio" name="rb" value="2">值2(value 2)<br>
<input type="radio" name="rb" value="3">值3(value 3)<br>
<input type="radio" name="rb" value="4">值4(value 4)<br>
	<input type="button" value="设置  2 选中" id="r1">
	<input type="button" value="获取选中值" id="r4">
	<input type="button" value="显示可用" id="r2"> 
	<input type="button" value="去除 2 禁用" id="r3">
	<input type="button" value="禁用2" id="r5">
</fieldset>
</fieldset>
</body>
</html>